package com.hotel.homehotel.before.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.homehotel.before.entiy.Order;
import com.hotel.homehotel.before.entiy.vo.RoomVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Select("select begin_time,end_time from user_order where is_deleted=0 and room_id=#{id}")
    public List<RoomVo> selectTime(String id);
}
